body {
    margin: 4rem auto;
    max-width: 50rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-family: "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: lightgray;
    background-color: #1A1A1A; /* for light theme #2E1A4A */
    overflow-wrap: break-word;
    line-height: 1.4rem;
}

::selection {
	background-color: purple;
}

input::selection, textarea::selection {
    color: lightgray;
}

h1, h2, h3, nav {
    display: inline;
}

ul {
    padding-inline-start: 1rem;
}

/* Tag (and something else) list */
nav#tag-list {
    text-align: center;
    margin: 1rem;
    display: block;
}

/* Menu with more comprehensive list of threads */
nav#menu {
    border: 0.01rem solid;
    padding: 1rem;
    margin-bottom: 1rem;
    display: block;
}

nav#menu p {
    text-align: center;
    margin-bottom: 0;
}

/* Thread index navigation icons */
article header.thread-header-index {
    position: relative;
    display: flex;
}

article header span.thread-full-heading-wrapper {
    margin-right: 5rem;
    min-width: 0;
}

nav.thread-index-nav {
    position: absolute;
    top: 0;
    right: 0;
}

nav.thread-index-nav a {
    text-decoration: none;
}

/* General hyperlink style */
a:link {
    color: #9E7AFF;
}

a:visited {
    color: #9E7AFF;
}

a:hover {
    text-decoration: overline underline;
    color: #865DFF;
}

a:active {
    text-decoration: none;
}

/* Spoiler rendering */
span.spoiler {
    background-color: darkgray;
    color: darkgray;
    padding: 0 1px;
}

span.spoiler a {
    color: darkgray;
}

span.spoiler:hover, span.spoiler:hover a {
    background-color: black;
    color: lightgray;
}

/* Block quote rendering */
blockquote {
    margin: 0;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 0.01rem dotted;
    border-bottom: 0.01rem dotted;
    color: lightgreen;
}

/* Main thread area style */
article {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: double;
}

/* Thread post style */
section {
    margin: 1rem 0.5rem 1rem 0.3rem;
}

section p {
    margin: 1rem 1rem 1rem 1rem;
    padding: 1rem;
}

section header {
    color: gray;
}

section header h2, section header h3 {
    font-size: 1.1rem;
}

hr.first-post-delimiter {
    width: 50%;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    border-style: dashed;
}

/* Form style */
form {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

input {
    width: 50%;
    height: auto;
    accent-color: #865DFF;
    border: none;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    background-color: #F0F0F0;
}


textarea {
    width: 98%;
    height: auto;
    accent-color: #865DFF;
    border: none;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    background-color: #F0F0F0;
}

select {
    font-size: 1rem;
    background-color: #F0F0F0;
}

option {
    color: white;
    background-color: #865DFF;
}

button {
    font-size: 1rem;
    background-color: #865DFF;
    color: white;
    margin-bottom: 0.1rem;
}

/* Subback */

table.subback {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: double;
    table-layout: fixed;
}

table.subback th:nth-child(2) {
    width: 40%;
}

table.subback th:nth-child(5) {
    width: 20%;
}

fieldset {
    margin: 1rem;
    padding: 1rem;
}

/* Thread up and down nav */

nav.thread_vertical_nav {
    display: block;
    margin: 1rem;
    text-align: center;
}

nav.thread_vertical_nav a {
    text-decoration: none;
}

/* Return and related links nav */

nav.return-nav {
    margin-left: 1rem;
}

/* About page */
article.about h1 {
    font-size: 2em;
}

article.about {
    padding: 1rem 5rem 1rem 5rem;
}

article.about h2, article.about h3, article.about h4, article.about h5, article.about h6 {
    padding: 1rem;
}

